﻿<UserControl x:Class="RB.Developer.Tools.UserControlDmlGenerate"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="791" d:DesignWidth="618">
    <Grid>
        <Label Content="连接类型" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label1" VerticalAlignment="Top" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="95,12,0,0" Name="cmbConnectType" VerticalAlignment="Top" Width="120">
            <ComboBoxItem Content="SQL Server" IsSelected="True" />
            <ComboBoxItem Content="OLE DB" />
            <ComboBoxItem Content="ODBC" />
        </ComboBox>
        <Label Content="连接字符串" Height="28" HorizontalAlignment="Left" Margin="10,44,0,0" Name="label2" VerticalAlignment="Top" />
        <TextBox Height="50" HorizontalAlignment="Left" Margin="95,46,0,0" Name="txtConnStr" VerticalAlignment="Top" Width="302" />
        <Label Content="物理表" Height="28" HorizontalAlignment="Left" Margin="34,102,0,0" Name="label4" VerticalAlignment="Top" />
        <ComboBox Height="23" HorizontalAlignment="Left" IsEditable="True" Margin="95,102,0,0" Name="cmbTable" VerticalAlignment="Top" Width="154" SelectionChanged="cmbTable_SelectionChanged" LostFocus="cmbTable_LostFocus" />
        <Button Content="生成" Height="23" HorizontalAlignment="Left" Margin="422,135,0,0" Name="btnGenerate" VerticalAlignment="Top" Width="75" Click="btnGenerate_Click" />
        <Button Content="连接数据库" Height="23" HorizontalAlignment="Left" Margin="230,12,0,0" Name="btnConnect" VerticalAlignment="Top" Width="75" Click="btnConnect_Click" />
        <RadioButton Content="插入" Height="16" HorizontalAlignment="Left" Margin="265,107,0,0" Name="rdoInsert" VerticalAlignment="Top" IsChecked="True" GroupName="DmlTypes" />
        <RadioButton Content="更新" Height="16" HorizontalAlignment="Right" Margin="0,107,267,0" Name="rdoUpdate" VerticalAlignment="Top" GroupName="DmlTypes" />
        <Label Content="条件" Height="28" HorizontalAlignment="Left" Margin="46,136,0,0" Name="label3" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="95,136,0,0" Name="txtFilter" VerticalAlignment="Top" Width="302" Text="" TextChanged="txtFilter_TextChanged" />
        <TextBox AcceptsReturn="True" Height="313" HorizontalAlignment="Left" Margin="12,170,0,0" Name="txtDml" VerticalAlignment="Top" Width="566" />
        <ListBox Height="114" HorizontalAlignment="Left" Margin="422,13,0,0" Name="listBoxFields" VerticalAlignment="Top" Width="176" SelectionMode="Multiple" />
    </Grid>
</UserControl>
